package com.xxmw.transaction.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonFormat.Shape;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Getter
@Setter
@TableName(value = "sys_user")
public class SysUser implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(type = IdType.AUTO)
	private Long userId;

    private String username;

    private String password;

    private String salt;

    @JsonFormat(shape = Shape.NUMBER)
    private Boolean status;

    private Long adder;

    /**
     * 类型 1官方 2第三方
     */
    private Integer type;

    private Date created;

    @TableField(exist = false)
    private List<Long> roleIdList;

}
